package com.ta.stage;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Hello world!
 *
 */
@SpringBootApplication(scanBasePackages = {"com.ta.stage"})
@MapperScan(value = {"com.ta.stage.dao"})

public class App {
    public static void main( String[] args ) {
        //System.out.println( "Hello World!" );
        SpringApplication.run(App.class,args);
        //new SpringApplicationBuilder(App.class).properties("spring.config.location=classpath:/application.yml").run(args);

        //ConfigurableApplicationContext context = new SpringApplicationBuilder(App.class).properties("spring.config.location=classpath:/application.yml").run(args);
        // 输出变量
        //System.out.println(context.getEnvironment().getProperty("spring.datasource.url"));

    }
}
